/**
 * 订单模板类
 * @version 1.0.0
 */
class SsqTplModel {

	/**
	 * 返回完整的文件模板
	 * @param {Object} data 
	 * @returns 
	 */
	getTplForFileData(data = {}) {
		return Object.assign({
			"PrevDrawalInfo": {
				"lotteryDrawNum": 25098,
				"lotteryDrawResult": "",
				"lotteryDrawTime": ""
			},
			"DrawalInfo": {
				"lotteryDrawNum": 25099,
				"lotteryDrawResult": "",
				"lotteryDrawTime": ""
			},
			"OrderList": [
				// {
				//     "remark": "沙雕了，总结规律是。。。",
				//     "param": { chooseMode: '', poolType: '', filterLevel: '', buildBy: '' },
				//     "data": [
				//         // "03 13 11 11 21 08 12"
				//     ],
				//     "prize_info": {
				//         "value": 1,
				//         "text": "一等奖",
				//         "front": 6,
				//         "back": 1,
				//         "money": 5000000,
				//         "moneyText": "500万"
				//     },
				// }
			]
		}, data);
	}

	/**
	 * 
	 * @param {Object} data 
	 * @returns 
	 */
	getTplForOrderListItem(data = {}) {
		return Object.assign({
			"remark": "沙雕了，总结规律是。。。",
			"param": {
				chooseMode: '',
				poolType: '',
				filterLevel: '',
				buildBy: ''
			},
			"data": [
				// "03 13 11 11 21 08 12"
			],
            "prize_info": {
                "value": 0,
                "text": "未中奖",
                "front": 0,
                "back": 0,
                "money": 0,
                "moneyText": "-"
            },
		}, data);
	}

	/**
	 * 返回所有参数合集
	 * @param {string} chooseMode 选号模式：初选/优选
	 * @param {string} poolType 号源类型：frontAndBack/columns/xcolumns-h1h1/xcolumns-h1h2/xcolumns-h2h1/xcolumns-h2h2
	 * @param {string} filterLevel 选号池过滤：1/2/3
	 * @param {string} buildBy 选号类型：定时任务/人工选号/AI选号/机器选号
	 * @returns 
	 */
	getAllTplParams() {
		return [{
				chooseMode: '初选',
				poolType: 'frontAndBack',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'frontAndBack',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'frontAndBack',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'frontAndBack',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'frontAndBack',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'frontAndBack',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'columns',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'columns',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'columns',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'columns',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'columns',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'columns',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h1h1',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h1h1',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h1h1',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h1h1',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h1h1',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h1h1',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h1h2',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h1h2',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h1h2',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h1h2',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h1h2',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h1h2',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h2h1',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h2h1',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h2h1',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h2h1',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h2h1',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h2h1',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h2h2',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h2h2',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '初选',
				poolType: 'xcolumns-h2h2',
				filterLevel: 3,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h2h2',
				filterLevel: 1,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h2h2',
				filterLevel: 2,
				buildBy: '机器选号'
			},
			{
				chooseMode: '优选',
				poolType: 'xcolumns-h2h2',
				filterLevel: 3,
				buildBy: '机器选号'
			},
		];
	}

	getParamPoolTypeText(poolType) {
		return {
			"frontAndBack": "前区和后区号码池",
			"columns": "7列号码池",
			"xcolumns-h1h1": "7列号码池-前半前半",
			"xcolumns-h1h2": "7列号码池-前半后半",
			"xcolumns-h2h1": "7列号码池-后半前半",
			"xcolumns-h2h2": "7列号码池-后半后半",
		} [poolType] || poolType;
	}



	ChooseModeData = [{
		text: '初选',
		value: '初选'
	}, {
		text: '优选',
		value: '优选'
	}];
	PoolTypeData= [{
		text: '前区和后区号码池',
		value: 'frontAndBack'
	}, {
		text: '7列号码池',
		value: 'columns'
	}, {
		text: '7列号码池-前半前半',
		value: 'xcolumns-h1h1'
	}, {
		text: '7列号码池-前半后半',
		value: 'xcolumns-h1h2'
	}, {
		text: '7列号码池-后半前半',
		value: 'xcolumns-h2h1'
	}, {
		text: '7列号码池-后半后半',
		value: 'xcolumns-h2h2'
	}];
	
	FilterLevelData = [{
		text: '1',
		value: '1'
	}, {
		text: '2',
		value: '2'
	}, {
		text: '3',
		value: '3'
	}];
}

export default SsqTplModel;